/**预制体配置 */
export interface IPrefab {
    /**路径 */
    path: string,
    /**预制体类型 */
    type: number,
    /**无需显示loading */
    noLoading?: boolean,
    /**不可点击空白处关闭 */
    //TODO:点击空白处关闭弹窗
    noBlankClose?: boolean
}

/**预制体类型 */
export enum PrefabType {
    /**全屏场景 */
    Layer,
    /**弹窗面板 */
    Dialog,
    /**引导场景 */
    Guide
}
/**
 * 预制体路径
 */
export class PrefabPath {
    /**Toast Tip */
    static toastTipLayer: IPrefab = {
        path: 'prefabs/gameModule/toast_tip',
        type: PrefabType.Dialog,
        noLoading: true
    }

    /**游戏开始 */
    static gameMainLayer: IPrefab = {
        path: 'prefabs/gameModule/gameMainLayer',
        type: PrefabType.Layer,
    }
    /**游戏场景 */
    static gameLayer: IPrefab = {
        path: 'prefabs/gameModule/gameLayer',
        type: PrefabType.Layer,

    }

    /**通关面板 */
    static levelSuccess: IPrefab = {
        path: 'prefabs/gameModule/level_success',
        type: PrefabType.Dialog,
        noBlankClose: true,
    }

    /**设置面板 */
    static setting: IPrefab = {
        path: 'prefabs/gameModule/setting',
        type: PrefabType.Dialog,

    }


    /**加载面板 */
    static loading: IPrefab = {
        path: 'prefabs/common/loading',
        type: PrefabType.Layer,
        noLoading: true
    }

    /**引导面板 */
    static guideLayer: IPrefab = {
        path: 'prefabs/common/guideLayer',
        type: PrefabType.Guide,
        noLoading: true
    }
}
